<?php

$cd_cliente = sessao_get("cd_cliente");

switch ($_GET['act']) {
    case "cupom":
            $timeline = "cesta";
            $file = "cupom.php";
            break;

    case "cesta":
        $timeline = "cesta";
        $file = "cesta.php";
        break;

    case "identif":
        $timeline = "identif";
        $file = "cad_cliente.php";
        break;

    case "entrega":
        $timeline = (empty($cd_cliente)?"identif":"entrega");
        $file = "entrega.php";
        break;

    case "endereco":
        $timeline = "entrega";
        $file = "alt_endereco.php";
        break;

    case "pagamento":
        $timeline = "pagamento";
        $file = "pagamento.php";
        break;

    case "confirmacao":
        $timeline = "confirmacao";
        //$file = $cd_cliente == 12953 || true ? 'confirmacaoBKP.php' : "confirmacao.php";
        $file = 'confirmacao.php';
        break;

    case "lembrarsenha":
        $timeline = "identif";
        $file = "lembrarsenha.php";
        break;

    case "final":
        $timeline = "confirmacao";
        //$file = $cd_cliente == 12953 || true ? 'finalBKP.php' : "final.php";
        $file = 'finalBKP.php';
        break;

    default:
        $timeline = "cesta";
        $file = "cesta.php";
}

?>

<div class="internas">
    <img class="passos" src="_images/timeline/<?php echo $timeline; ?>.png" alt="Cesta" title="Cesta" />

    <?php
        if ($_GET['act'] != "cesta" AND empty($cd_cliente) && $_GET['act'] != "cupom") {   
            require_once(BASE_PATH . "conteudo/login.php");            
        } else {
            require_once(BASE_PATH . "compra/" . $file);
        }
    ?>
</div>